/*
    vxworks.me -- VxWorks Settings
 */
Me.load({
    blend: [    
        'gcc.me',
    ],

    ext: {
        exe:   'out',
        lib:   'a',
        res:   'res',
        o:      'o',
        shlib: 'out',
        shobj: 'out',
    },

    prefixes: {
        root:       'deploy'
        base:       '${prefixes.root}',
        data:       '${prefixes.root}',
        state:      '${prefixes.root}',

        bin:        '${prefixes.base}',
        inc:        '${prefixes.base}/inc',
        lib:        '${prefixes.base}',
        man:        '${prefixes.base}',
        sbin:       '${prefixes.base}',

        etc:        '${prefixes.base}',
        web:        '${prefixes.base}/web',

        log:        '${prefixes.base}',
        spool:      '${prefixes.base}',
        cache:      '${prefixes.base}',

        app:        '${prefixes.base}',
        vapp:       '${prefixes.base}',
        src:        '/usr/src/${settings.name}-${settings.version}',
    },

    configure: {
        requires: [ 'compiler', 'lib', 'link' ],
    },

    rules: {
        'c->c':   '${targets.compiler.path} -E ${CFLAGS} ${DEFINES} ${INCLUDES} ${PREPROCESS} ${INPUT}',
        'c->o':   '${targets.compiler.path} -c -o ${OUTPUT} ${CFLAGS} ${DEFINES} ${INCLUDES} ${PREPROCESS} ${INPUT}',
        'cpp->o': '${targets.compiler.path} -c -o ${OUTPUT} ${CFLAGS} ${DEFINES} ${INCLUDES} ${PREPROCESS} ${INPUT}',
        'shlib':  '${targets.compiler.path} -r -o ${OUTPUT} ${LDFLAGS} ${LIBPATHS} ${INPUT} ${LIBS}'
        'lib':    '${targets.lib.path} -cr ${OUTPUT} ${INPUT}'
        'exe':    '${targets.compiler.path} -o ${OUTPUT} ${LDFLAGS} ${LIBPATHS} ${INPUT} ${LIBS} ${LDFLAGS}'
        'gui':    '${targets.compiler.path} -o ${OUTPUT} ${LDFLAGS} ${LIBPATHS} ${INPUT} ${LIBS} ${LDFLAGS}'
    },
})
